import http from '@/utils/Http'
import { LoginData } from "@/data/AuthData.ts";

export function login(data:LoginData){
    return http<string>({
        method: 'post',
        url: '/auth/login',
        data: data
    })
}

export function logout(){
    return http({
        method: 'post',
        url: '/auth/logout'
    })
}